package com.ayf.payment.game.api.service.platform.impl;

import com.ayf.payment.game.api.dto.criteria.SMSSelectCriteria;
import com.ayf.payment.game.api.dto.platform.SmsContentDTO;
import com.ayf.payment.game.api.entity.platform.SmsRecord;
import com.ayf.payment.game.api.mapper.platform.SmsRecordMapper;
import com.ayf.payment.game.api.service.platform.SmsRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SmsRecordServiceImpl implements SmsRecordService {

    @Resource
    private SmsRecordMapper smsRecordMapper;

    @Override
    public List<SmsRecord> list(SMSSelectCriteria smsCriteria) {
        return smsRecordMapper.list(smsCriteria);
    }

    @Override
    public boolean insert(SmsRecord smsRecord) {
        return smsRecordMapper.insertSelective(smsRecord) > 0;
    }

    @Override
    public void deleteSmsByIds(SmsContentDTO smsContentDTO) {
        smsRecordMapper.deleteSmsByIds(smsContentDTO);
    }
}




